//
//  JWWebService.h
//  JWBrowser
//
//  Created by Dejun Liu on 14-12-10.
//  Copyright (c) 2014年 JW. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JWSingleSite.h"

typedef void(^JWComplation)(id responseData , NSError *error);

@interface JWWebService : NSObject

@property (nonatomic,strong,readonly) JWSingleSite *comunicator;
@property (nonatomic,strong,readonly) NSURL *baseURL;

JW_SINGLETON_INTERFACE(JWWebService)

- (void)getWithParams:(NSDictionary *)dic jsonResponse:(Complation ) complation;
- (void)postWithParams:(NSMutableDictionary *)dic jsonResponse:(Complation) complation;
- (void)postWithAction:(NSString *)action params:(NSMutableDictionary *)dic jsonResponse:(JWComplation) complation;

@end
